﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Wicresoft.fjyc.Integration.Engine;
using ITSMClient;
using SelfServiceClient;
using Wicresoft.fjyc.Integration.HR.Interface;
using UnifyShowClient;

namespace TestProject1
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            HREngine hrengine = new HREngine();
            //hrengine.Execute();
        }

        [TestMethod]
        public void TestMethod2()
        {
            ITSMClient.ITSMClient itsmClient = new ITSMClient.ITSMClient();
            itsmClient.PushEmployee(new Employee());
        }

        [TestMethod]
        public void TestMethod3()
        {
            SelfServiceClient.SelfServiceClient ssClient = new SelfServiceClient.SelfServiceClient();
            Employee ee = new Employee();
            ee.O_UID = "test2";
            ee.CNAME = "name";
            ee.COMPANY = "company";
            ee.DEPT = "dept";
            ee.POSITIONNAME = "position";
            ee.EMAIL = "email";
            ssClient.PushEmployee(ee);
        }

        [TestMethod]
        public void TestMethod5()
        {
            IEmployeeOperation sync = (IEmployeeOperation)new UnifyShowClient.UnifyShowClient();
            Employee ee = new Employee();
            ee.O_UID = "test4";
            ee.CNAME = "name111";
            ee.COMPANY = "company";
            ee.DEPT = "dept";
            ee.POSITIONNAME = "position";
            ee.EMAIL = "email";
            sync.PushEmployee(ee);
        }


        [TestMethod]
        public void TestMethod6()
        {
            IEmployeeOperation sync = (IEmployeeOperation)new ITSMClient.ITSMClient();
            Employee ee = new Employee();
            ee.O_UID = "test4";
            ee.CNAME = "name111";
            ee.COMPANY = "company";
            ee.DEPT = "dept";
            ee.POSITIONNAME = "position";
            ee.EMAIL = "email";
            sync.PushEmployee(ee);
        }

        [TestMethod]
        public void TestMethod7()
        {
            IEmployeeOperation sync = (IEmployeeOperation)new ITSMClient.ITSMClient();
            Employee ee = new Employee();
            ee.O_UID = "test7";
            ee.CNAME = "nameWilliam";
            ee.COMPANY = "company";
            ee.DEPT = "dept";
            ee.POSITIONNAME = "position";
            ee.EMAIL = "email";
            sync.PushEmployee(ee);
        }

    }
}
